/*  
     PlAr is Platform Arena: a 2D multiplayer shooting game
     Copyright (C) 2009 Ragagnin Antonio <spocchio@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package plar.core.defaultElements;

import java.util.ArrayList;

import plar.core.Element;
import plar.core.Sprite;

public class Block extends Element {

	public Block() {
		super();
		setProperty("type", "block");
		// setProperty("isRunnable",true);
		setProperty("z", 0);
		setProperty("canCollide", true);
		Sprite s = new Sprite("res/element.png", -1);

		s.texturized = true;
		ArrayList<Sprite> ss = new ArrayList<Sprite>();
		ss.add(s);
		setProperty("currentSpriteSet", ss);
		// setProperty("currentSprite",s);

		// actions.addAction("collision", new Attrito());
	}

	/*
	 * public void run() { ArrayList <Element> collisions = new ArrayList
	 * <Element>();
	 * 
	 * 
	 * Point fakeSpeed = new Point(0,-1); collisions =
	 * level.getCollisions(this,getTraceRectangle(fakeSpeed)); //
	 * Common.info("collision from "+this+" to"+collisions);
	 * 
	 * stdinfo.put("collisionList",collisions); actions.runAll(stdinfo); }
	 */

}
